package com.ruoyi.web.controller.cpsp;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.cpsp.service.SubSystemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@CrossOrigin
@RequestMapping("/subSystem")
@RestController
public class SubSystemController extends BaseController {

    @Autowired
    SubSystemService subSystemService;

    @GetMapping("/all")
    public AjaxResult getSubSystem(){
        return AjaxResult.success(subSystemService.listAllSubSystem());
    }

}
